# -*- coding:utf-8 -*-
from Tkinter import *
from ttk import *

from frames.adb_control_frame import AdbControl
from frames.file_frame import FileControl
from utils.adb_utils import AdbManager
from frames.devices_frame import DeviceSelector


class MainFrame:
    def __init__(self, master):
        self.adb = AdbManager()

        self.master = Frame(master)
        self.master.pack(side=TOP, anchor=W, expand=True, fill=BOTH, padx=4, pady=4)

        self.init_devices_selector()
        self.init_control_frame()
        self.init_file_frame()

    def init_devices_selector(self):
        DeviceSelector(self.master, self.adb)

    def init_control_frame(self):
        AdbControl(self.master, self.adb)

    def init_file_frame(self):
        FileControl(self.master, self.adb)
